| Previous | Chapter contents | Chapter top | Section top | Next |
You can use the QTVRGetHotSpotType function to get the type of a hot spot.
OSErr QTVRGetHotSpotType (
QTVRInstance qtvr,
UInt32 hotSpotID,
OSType *hotSpotType);
The QTVRGetHotSpotType function gets the type of a hot spot whose ID you specify. In combination with the kQTVRGetHotSpotTypeSelector intercept selector, this allows an applcation to change a hot spot's type dynamically.
For example, an application can take an existing movie and cause VR to display the cursors for a type of hotspot different from the one the movie was originally authored with. In combination with intercepting kQTVRTriggerHotSpotSelector , this would allow an Internet plugin to override undefined or link hotspots in movies to make them appear and act as though they are URL links instead. If kQTVRTriggerHotSpotSelector is not intercepted, VR will attempt to act on the hotspot in the normal way; by storing both link and URL data in a file, the exact behavior can be determined at runtime by an application to allow linking to either another node locally or a remote URL link, depending on system configuration or other arbitrary considerations.
| Previous | Chapter contents | Chapter top | Section top | Next |